 package sza.oracle.apps.ap.oie.webui;
 
 import oracle.apps.ap.oie.webui.ConfirmationCO;
 import oracle.apps.fnd.common.VersionInfo;
 import oracle.apps.fnd.framework.webui.OAPageContext;
 import oracle.apps.fnd.framework.webui.beans.OAWebBean;
 import oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean;
 import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
 import oracle.apps.fnd.framework.webui.beans.layout.OASubTabLayoutBean;
 import sza.oracle.apps.ap.oie.utility.SzaOIEUtil;
 
 public class SzaConfirmationCO extends ConfirmationCO
 {
   public static final String RCS_ID = "$Header$";
   public static final boolean RCS_ID_RECORDED = VersionInfo.recordClassVersion("$Header$", "%packagename%");
 
   public void processRequest(OAPageContext pageContext, OAWebBean webBean)
   {
     String LogMessage = "";
     String LogFunction = "";
     LogFunction = "SZA SzaConfirmationCO.processRequest";
 
     LogMessage = "SZA SzaConfirmationCO.processRequest - Start";
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
     super.processRequest(pageContext, webBean);
 
     Integer isPrintableFacet = Integer.valueOf(0);
     try
     {
       LogMessage = "SZA SzaConfirmationCO.processRequest - Try -Start";
 
       SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
       isPrintableFacet = (Integer)pageContext.getSessionValue("isPrintableFacet");
 
       LogMessage = "isPrintableFacet:" + isPrintableFacet.toString();
 
       SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
       LogMessage = "SZA SzaConfirmationCO.processRequest - Try - End";
 
       SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
     }
     catch (Exception e)
     {
     }
 
     OAPageLayoutBean pageLayout = pageContext.getPageLayoutBean();
     pageLayout.prepareForRendering(pageContext);
 
     if ((isPrintableFacet != null) && (isPrintableFacet.intValue() == 1))
     {
       isPrintableFacet = Integer.valueOf(isPrintableFacet.intValue() + 1);
       pageContext.putSessionValue("isPrintableFacet", isPrintableFacet);
 
       LogMessage = "isPrintableFacet:" + isPrintableFacet.toString();
 
       SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
       OAHeaderBean sih = (OAHeaderBean)webBean.findIndexedChildRecursive("submissionInstructionsHeader");
 
       if (sih != null)
       {
         LogMessage = "SZA SzaConfirmationCO.processRequest - isPrintableFacet  - submissionInstructionsHeader";
 
         SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
         sih.setRendered(false);
       }
 
       OAWebBean ReviewGenInfoHeaderAttachments = webBean.findIndexedChildRecursive("ReviewGenInfoHeaderAttachments");
 
       if (ReviewGenInfoHeaderAttachments != null)
       {
         LogMessage = "SZA SzaConfirmationCO.processRequest - isPrintableFacet  - ReviewGenInfoHeaderAttachments";
 
         SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
         ReviewGenInfoHeaderAttachments.setRendered(false);
       }
 
       OASubTabLayoutBean ConfirmSubTabsRN = (OASubTabLayoutBean)webBean.findIndexedChildRecursive("ConfirmSubTabsRN");
 
       if (ConfirmSubTabsRN != null)
       {
         LogMessage = "SZA SzaConfirmationCO.processRequest - isPrintableFacet  - ConfirmSubTabsRN";
 
         SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
         ConfirmSubTabsRN.hideSubTab(4, true);
       }
 
       if (pageContext.dialogMessagesExist() == true)
       {
         LogMessage = "SZA SzaConfirmationCO.processRequest - isPrintableFacet  - dialogMessagesExist";
 
         SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
         pageContext.removeDialogMessages();
       }
 
       if (webBean.findIndexedChildRecursive("SzaApproversRN") == null)
       {
         LogMessage = "SZA SzaConfirmationCO.processRequest - isPrintableFacet  - SzaApproversRN";
 
         SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
         OAWebBean SzaApproversRN = createWebBean(pageContext, "appswebui/ApproversRN", "SzaApproversRN", true);
 
         webBean.findIndexedChildRecursive("ConfirmationPgStackLayout").addIndexedChild(SzaApproversRN);
       }
 
     }
 
     LogMessage = "SZA SzaConfirmationCO.processRequest - End";
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
   }
 
   public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
   {
     String LogMessage = "";
     String LogFunction = "";
     LogFunction = "SZA SzaConfirmationCO.processFormRequest";
 
     LogMessage = "SZA SzaConfirmationCO.processFormRequest - Start";
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
 
     super.processFormRequest(pageContext, webBean);
 
     LogMessage = "SZA SzaConfirmationCO.processFormRequest - End";
 
     SzaOIEUtil.cmlinLog(pageContext, LogFunction, LogMessage);
   }
 }



